package com.zhangtai.modules.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhangtai.modules.entity.common.ImgUrlEntity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

/**
 * 
 *
 * @author chenshun
 * @email sunlightcs@gmail.com
 * @date 2020-07-02 10:00:14
 */
@Mapper
public interface ImgUrlDao extends BaseMapper<ImgUrlEntity> {

	@Delete("DELECT FROM tb_img_url WHERE oid = #{oid}")
	public ImgUrlEntity delectImgUrl(Long oid);

	@Delete("DELECT FROM tb_img_url WHERE oid = #{oid} and  oid = #{type}")
	public ImgUrlEntity delectImgUrlByType(Long oid,Integer type);
}
